import React from 'react'
//分享官账户列表
export async function sharerAccountPage(params) {
  return await React.$post('/user/api/b/sharerAccount/page', params);
}
//账户详情
export async function sharerAccountDetails(params) {
  return await React.$get('/user/api/b/sharerAccount/' + params);
}
//账户明细
export async function sharerBalanceDetails (params) {
  return await React.$post('/user/api/b/sharerBalanceDetails/page', params);
}
// 账户状态更新
export async function updateSharerAccountStatus (params) {
  return await React.$postJson('/user/api/b/sharerAccount/updateSharerAccountStatus', params);
}
//冻结或解冻收益
export async function freezeOrUnfreezeIncome (params) {
  return await React.$postJson('/user/api/b/sharerFreezeIncomeDetails/freezeOrUnfreezeIncome', params);
}
// 冻结解冻记录列表
export async function sharerFreezeIncomeDetailsPage (params) {
  return await React.$post('/user/api/b/sharerFreezeIncomeDetails/page', params);
}
// 查找分享官
export async function listByMemberId (params) {
  return await React.$post('/user/api/b/app/sharedBy/listByMemberid', params);
}
// 新增月度奖励
export async function addMonthlyReward(params) {
  return await React.$postJson('/trade/api/commissionRecord/sendMonthlyReward', params);
}